home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / thrust_2.swf / scripts / frame_21 / PlaceObject2_107_537 / CLIPACTIONRECORD onClipEvent(enterFrame)_3.as < prev    next >
Text File  |  2012-01-07  |  417b  |  28 lines

  1. onClipEvent(enterFrame){
  2.    if(won == false)
  3.    {
  4.       bonusleft += 1;
  5.       if(bonusleft == 10)
  6.       {
  7.          _root.bonus -= 1;
  8.          bonusleft = 0;
  9.       }
  10.       if(_root.bonus < 0)
  11.       {
  12.          _root.bonus = 0;
  13.       }
  14.    }
  15.    if(this._x < 0)
  16.    {
  17.       this._x = 555;
  18.    }
  19.    if(this._x > 555)
  20.    {
  21.       this._x = 0;
  22.    }
  23.    if(this._y < 50)
  24.    {
  25.       this._y = 50;
  26.    }
  27. }
  28.